//
//  StaffAuditorTableViewCell.m
//  NtoccShipper
//
//  Created by 张天兴 on 2024/11/11.
//  Copyright © 2024 zhuchongjin. All rights reserved.
//

#import "StaffAuditorTableViewCell.h"

@implementation StaffAuditorTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)ConsolidatePaymentCellfuzhi:(SourcesOrderListModel *)model{
    if (model.isCancel == 0) {
        self.numberLabel.text = CJStringWithFormat(@"货源单号：%@",model.mainOrderNumber);
        self.huoYNumberLabel.text = CJStringWithFormat(@"运单号：%@",model.orderCode);
        switch (model.status) {
            case 1:
                self.typeTypeLabel.text = @"已接单";
                break;
            case 2:
                self.typeTypeLabel.text = @"已装货";
                break;
            case 3:
                self.typeTypeLabel.text = @"已卸货";
                break;
            case 4:
                self.typeTypeLabel.text = @"已核算";
                break;
            case 5:
                self.typeTypeLabel.text = @"已完成";
                break;
                
            default:
                break;
        }
        
    }else{
        self.typeTypeLabel.text = @"已撤销";
    }
    if ([model.isSelected isEqualToString:@"1"]) {
        self.selectedImage.image = [UIImage imageNamed:@"zcj_selectedCir"];
    }else{
        self.selectedImage.image = [UIImage imageNamed:@"zcj_unSelectedCir"];
    }
    self.nameLabel.text = model.driverName;
    
    if ([CJRegular getIsStrEmpty:model.driverName]) {
        self.nameLabel.hidden = YES;
    }else{
        self.nameLabel.hidden = NO;
    }

    self.typeLabel.text = CJStringWithFormat(@"历史订单:%ld单         %@",(long)model.driverHistoryCount,model.vehicleLicense);
    self.cypreiceLabel.text = CJStringWithFormat(@"%@%@",@(model.loadQuantity).cj_description,model.coalUnitName); //coalUnitName
    self.cynumberLabel.text =CJStringWithFormat(@"%@%@",@(model.taxPrice).cj_money_description,model.isTrunkName);
 
}
@end
